<?php
/**
 * PHP Framework Core Type class
 * This class represents a generic reference object type
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
class Type implements IReflectable {
    
    public $_object = null;

    public function __construct(&$object) {
        $this->_object = &$object;
    }

    public function getFieldNames() {
        return array();
    }

    public function getFieldValues() {
        $arFieldValues = array();
        $arFieldNames = $this->getFieldNames();
        foreach ($arFieldNames as $value) {
            $arFieldValues[$value] = $this->_object->$value;
        }
        return $arFieldValues;
    }
}
?>